home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
jaz_clib.arc
/
LOCATE.C
< prev
next >
Wrap
Text File
|
1989-04-09
|
398b
|
23 lines
#include <jaz.h>
extern int g_row,g_col,_row1,_row2,_col1,_col2;
locate (frow , fcol )
int frow , fcol;
{
TREG wreg;
frow += _row1;
fcol += _col1;
frow = max(frow,_row1);
frow = min(frow,_row2);
fcol = max(fcol,_col1);
fcol = min(fcol,_col2);
wreg.h.bh = 0; /* page 0 */
wreg.h.ah = 2;
wreg.h.dh = frow;
wreg.h.dl = fcol;
intr(0x10,&wreg);
}